package myutil.mylist;

/**
 *
 * @author Hlib_Babii
 */
public interface MyStack<T> {
    
    /**
     * pushes element onto the top stack
     * @param e element to be pushed
     */
    void push(T e);
    
    /**
     * removes element from the top of the stack and returns it
     * @return the element at the top of the stack or 
     * @throws MyNoSuchElementException if this stack is empty
     */
    T pop();
}
